/**
 *Copyright (c) 2024 watereyes
 * safetymanagement is licensed under Mulan PubL v2.
 * You can use this software according to the terms and conditions of the Mulan
 * PubL v2.
 * You may obtain a copy of Mulan PubL v2 at:
 *          http://license.coscl.org.cn/MulanPubL-2.0
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PubL v2 for more details.
 */
package com.koron.report.statistics.purpose;

import com.koron.report.management.StatisticsManagement;
import com.koron.report.statistics.StatisticsService;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Set;

/**
 * 责任书签订统计
 * @author CHENLJ
 *
 */
@Service
public class ContractStatisticsServiceImpl implements StatisticsService,InitializingBean {
	
	
	@Autowired
	private StatisticsManagement statisticsManagement;
	
	@Override
	public void afterPropertiesSet() throws Exception {
		Set<Object> handlers = statisticsManagement.getHandlers();
		handlers.add(this);
	}

	@Override
	public void statisticsMonth(int year, int month) {
		// 月度数据统计

	}

	@Override
	public void statisticsQuarter(int year, int quarter) {
		// 季度数据统计

	}

	@Override
	public void statisticsYear(int year) {
		// 年度数据统计
		// 指标：责任书签订完成率 计算公式：签订数/人员总数

	}

}
